projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e904c49
)
rendernodeparser: Fix a memory leak when parsing textures
author
Timm Bäder
<mail@baedert.org>
Sun, 21 Jul 2019 07:06:29 +0000
(09:06 +0200)
committer
Timm Bäder
<mail@baedert.org>
Sun, 21 Jul 2019 07:06:29 +0000
(09:06 +0200)
gsk/gskrendernodeparser.c
patch
|
blob
|
history
diff --git
a/gsk/gskrendernodeparser.c
b/gsk/gskrendernodeparser.c
index 4e8a337048506461bb1b0c5198da762c396f48af..402ee3e5e4899886d7e05625bb7431823b78ed43 100644
(file)
--- a/
gsk/gskrendernodeparser.c
+++ b/
gsk/gskrendernodeparser.c
@@
-94,6
+94,7
@@
parse_texture (GtkCssParser *parser,
if (bytes)
{
stream = g_memory_input_stream_new_from_bytes (bytes);
+ g_bytes_unref (bytes);
pixbuf = gdk_pixbuf_new_from_stream (stream, NULL, &error);
g_object_unref (stream);
if (pixbuf != NULL)